<!-- INCLUDE overall_header.html -->

<a name="maincontent"></a>

<!-- IF S_EDIT -->

	<span style="float: {S_CONTENT_FLOW_END};">&laquo; {U_ABBC3} &raquo;</span>
	
	<h1>{L_TITLE_EDIT}</h1>
	
	<p>{L_TITLE_EXPLAIN}</p>
	
	<script type="text/javascript" defer="defer">
	// <![CDATA[
		function update_image(newimage)
		{
			document.getElementById('newimg').src = (newimage) ? "{ICON_BASEDIR}/images/bg/" + encodeURI(newimage) : 'images/no_image.png';
		}
	// ]]>
	
	</script>
	
	<!-- IF S_ERROR -->
	<div class="errorbox">
		<h3>{L_WARNING}</h3>
		<p>{ERROR_MSG}</p>
	</div>
	<!-- ENDIF -->
	
	<form id="acp_abbcodes" method="post" action="{U_ACTION}">
	
	<!-- BEGIN options -->
	
	<!-- IF options.S_LEGEND -->
	
		<!-- IF not options.S_FIRST_ROW -->
		</fieldset>
		<!-- ENDIF -->
		<fieldset>
			<legend>{options.LEGEND}</legend>
	<!-- ELSE -->
			<dl>
				<dt><label for="{options.KEY}">{options.TITLE}:</label><!-- IF options.S_EXPLAIN --><br /><span>{options.TITLE_EXPLAIN}</span><!-- ENDIF --></dt>
				<dd>{options.CONTENT}</dd>
			</dl>
	<!-- ENDIF -->
	
	<!-- END options -->
	
	<!-- IF S_AUTH -->
		<!-- BEGIN auth_tpl -->
			{auth_tpl.TPL}
		<!-- END auth_tpl -->
	<!-- ENDIF -->
	
		</fieldset>
		
		<p class="submit-buttons">
			<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />
			<input class="button2" type="reset"  id="reset"  name="reset"  value="{L_RESET}" />
		</p>
		{S_FORM_TOKEN}

	</form>

	<!-- IF S_FOUNDER -->
	<fieldset>
		<form id="action_purge_cache_form" method="post" action="{U_ACTION}">
			<dl>
				<dt><label for="action_purge_cache">{L_PURGE_CACHE}</label><br /><span>{L_PURGE_CACHE_EXPLAIN}</span></dt>
				<dd><input type="hidden" name="action" value="purge_cache" /><input class="button2" type="submit" id="action_purge_cache" name="action_purge_cache" value="{L_RUN}" /></dd>
			</dl>
		</form>
  	</fieldset>
  	<!-- ENDIF -->

<!-- ELSEIF S_BBCODES -->

	<script type="text/javascript" defer="defer">
	// <![CDATA[
		function update_image(newimage)
		{
		//	alert ( currentimage )
			document.getElementById('newimg').src = (newimage) ? "{ICON_BASEDIR}/images/" + encodeURI(newimage) : 'images/no_image.png';
		}
	// ]]>
	
	</script>
	
	<span style="float: {S_CONTENT_FLOW_END};">&laquo; <!-- IF U_BACK --><a href="{U_BACK}">{L_BACK}</a><!-- ELSE -->{U_ABBC3}<!-- ENDIF --> &raquo;</span>
	
	<h1>{L_TITLE_BBCODES}</h1>
	
	<p>{L_EXPLAIN_BBCODES}</p>
	
	<!-- IF S_ERROR -->
	<div class="errorbox">
		<h3>{L_WARNING}</h3>
		<p>{ERROR_MSG}</p>
	</div>
	<!-- ENDIF -->
	
	<!-- IF S_BBCODE_EDIT -->
	<form id="acp_icons" method="post" action="{F_ACTION}">
	<!-- ENDIF -->
			<table cellspacing="1">
				<thead>
					<tr>
						<!-- IF S_BBCODE_EDIT --> <!-- DEFINE $COLSPAN = 6 --> <!-- ELSE --> <!-- DEFINE $COLSPAN = 1 --> <!-- ENDIF -->
						<th colspan="{$COLSPAN}">{L_ABBCODES_NAME}</th>
						<!-- IF not S_BBCODE_EDIT -->
						<th>{L_ACP_POST_SETTINGS}</th>
						<th>{L_ACP_MESSAGE_SETTINGS}</th>
						<th>{L_ACP_SIGNATURE_SETTINGS}</th>
						<th>{L_OPTIONS}</th>
						<!-- ENDIF -->
					</tr>
						<!-- IF S_BBCODE_EDIT -->
					<tr class="row3">
						<td>{L_ABBCODES_NAME}</td>
						<td>{L_ACP_POST_SETTINGS}</td>
						<td>{L_ACP_MESSAGE_SETTINGS}</td>
						<td>{L_ACP_SIGNATURE_SETTINGS}</td>
						<td>{L_ABBCODES_TAG}</td>
						<td>{L_CURRENT_IMAGE}</td>
					</tr>
						<!-- ENDIF -->
				</thead>
				
				<tbody>
				<!-- BEGIN items -->
				
				<!-- IF items.S_ROW_COUNT is even --><tr class="row1"><!-- ELSE --><tr class="row2"><!-- ENDIF -->
					
					<td>
					<!-- IF items.TAG_NAME --><b>[{items.TAG_NAME}]</b> &nbsp; <!-- ENDIF -->{items.TAG_EXPLAIN}
					<input type="hidden" name="id[{items.ID}]" value="{items.ID}" />
					<input type="hidden" name="name[{items.ID}]" value="{items.NAME}" />
					</td>
					
				<!-- IF S_BBCODE_EDIT -->
					<td>
						<input type="checkbox" class="radio" name="display_on_posting[{items.ID}]" {items.POSTING_CHECKED} />
					</td>
					<td>
						<input type="checkbox" class="radio" name="display_on_pm[{items.ID}]" {items.PM_CHECKED} />
					</td>
					<td>
						<input type="checkbox" class="radio" name="display_on_sig[{items.ID}]" {items.SIG_CHECKED} />
					</td>
					
					<td>
					<!-- IF items.IMG_SRC -->
						{items.S_NEW_IMG}
					</td>
					<td style="text-align:center;">
						<img src="{items.IMG_SRC}" id="newimg" name="{items.NAME}" alt="" />
					<!-- ELSE -->
						&nbsp;
					</td>
					<td>
						&nbsp;
					<!-- ENDIF -->
					</td>
					
				<!-- ELSE -->
					<td>{items.ON_POST}</td>
					<td>{items.ON_PM}</td>
					<td>{items.ON_SIG}</td>
					<td style="text-align: right; white-space: nowrap;">
						<!-- IF items.S_FIRST_ROW or items.S_NOMOVE -->{ICON_MOVE_UP_DISABLED}<!-- ELSE --><a href="{items.U_MOVE_UP}">{ICON_MOVE_UP}</a><!-- ENDIF -->&nbsp;
						<!-- IF items.S_LAST_ROW  or items.S_NOMOVE -->{ICON_MOVE_DOWN_DISABLED}<!-- ELSE --><a href="{items.U_MOVE_DOWN}">{ICON_MOVE_DOWN}</a><!-- ENDIF -->&nbsp;
						<a href="{items.U_EDIT}">{ICON_EDIT}</a>
					</td>
				<!-- ENDIF -->
				</tr>
				
				<!-- END items -->
			</tbody>
		</table>
		
		<p class="submit-buttons">
			<!-- IF S_BBCODE_EDIT -->
			<input class="button1" type="submit" id="submit" name="submit" value="{L_SUBMIT}" />&nbsp;
			<input class="button2" type="reset"  id="reset"  name="reset" value="{L_RESET}" />
			<!-- ENDIF -->
		</p>
		{S_FORM_TOKEN}

	<!-- IF S_BBCODE_EDIT -->
	</form>
	<!-- ENDIF -->

<!-- ENDIF -->

<!-- INCLUDE overall_footer.html -->